<template>
  <div class="teamWrap">
    <div class="title">
      我的團隊人員分布情況
    </div>
    <div class="goodtable">
      <el-table :data="list" style="width: 100%"   ref="singleTable" :header-cell-style="tableHeaderColor">
        <el-table-column label="姓名" align="center" width="150">
          <template slot-scope="scope">
            <div class="allPrice">{{scope.row.number}}</div>
          </template>
        </el-table-column>
        <el-table-column label="職位" align="center" width="200">
            <template slot-scope="scope">{{scope.row.goodsSn}}</template>
        </el-table-column>
        <el-table-column label="註冊時間" align="center" width="200">
            <template slot-scope="scope">{{scope.row.goodsName}}</template>
        </el-table-column>
        <el-table-column label="購買總pv" align="center" width="200">
            <template slot-scope="scope">{{scope.row.price}}</template>
        </el-table-column>
        <el-table-column label="會員號" align="center" width="300">
            <template slot-scope="scope">{{scope.row.price}}</template>
        </el-table-column>
      </el-table>
    </div>
    <!-- 分頁 -->
    <div class="pagination-container">
      <el-pagination background @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="page" :page-size="limit" 
        :page-sizes='[8,16]' layout="total,sizes, prev, pager, next, jumper " :total="total">
      </el-pagination>
    </div>
  </div>
</template>
<script>
export default {
  data(){
    return{
      list:[],
      limit:8,//每頁顯示數
      page:1,//第幾頁
      total:0,//總數
    }
  },
  methods:{
    //設置表頭行的樣式
    tableHeaderColor({row,column,rowIndex,columnIndex}){
      return 'background-color:#F5F5F5;text-align:center;height:20px;font-size: 20px;font-weight: bolder;color: #000;line-height: 20px;'
    },
  }
}
</script>
<style scoped>
  .teamWrap{
    background: white;
  }
  .title{
    font-size: 30px;
    font-weight: bold;
    color: #111111;
    text-align: center;
    line-height: 50px;
    padding: 10px 0px;
    box-sizing: border-box;
  }
  .goodtable>>>.el-table__row{
    line-height: 75px !important;
    height: 75px !important;
    background: #D6D6D6 !important;
  }
</style>